import request from '@/utils/request'

// 查询病虫处治列表
export function listTujianjiegoubingchongchuzhi(query) {
  return request({
    url: '/biz/tujianjiegoubingchongchuzhi/list',
    method: 'get',
    params: query
  })
}

// 查询病虫处治详细
export function getTujianjiegoubingchongchuzhi(id) {
  return request({
    url: '/biz/tujianjiegoubingchongchuzhi/' + id,
    method: 'get'
  })
}

// 新增病虫处治
export function addTujianjiegoubingchongchuzhi(data) {
  return request({
    url: '/biz/tujianjiegoubingchongchuzhi',
    method: 'post',
    data: data
  })
}

// 修改病虫处治
export function updateTujianjiegoubingchongchuzhi(data) {
  return request({
    url: '/biz/tujianjiegoubingchongchuzhi',
    method: 'put',
    data: data
  })
}

// 删除病虫处治
export function delTujianjiegoubingchongchuzhi(id) {
  return request({
    url: '/biz/tujianjiegoubingchongchuzhi/' + id,
    method: 'delete'
  })
}

// 导出病虫处治
export function exportTujianjiegoubingchongchuzhi(query) {
  return request({
    url: '/biz/tujianjiegoubingchongchuzhi/export',
    method: 'get',
    params: query
  })
}